package com.qfedu.lc.server.config;


import com.qfedu.lc.common.config.RabbitKeyConfig;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class RabbitMQConfig {

    @Bean
    public Queue createQCode(){
        return new Queue(RabbitKeyConfig.Q_SENDSMS);
    }


    /**
     * 增加积分的队列
     * @return
     */
    @Bean
    public Queue createQGrowth(){
        return new Queue(RabbitKeyConfig.Q_USER_GROWTH);
    }

}
